<?php
$str=curl('https://www.readnovel.com/book/21988277000642502');
//echo $str;
$preg='#<div class="crumbs-nav center1020">.*<div class="take-wrap">#isU';
preg_match($preg,$str,$arr);
//print_r($arr);
$preg_arr='#<div class="crumbs-nav center1020">.*<div class="take-wrap">#isU';
function curl($url)
{
    $ch=curl_init();
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_HEADER,0);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
    curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
    $str=curl_exec($ch);
    return $str;
}